<?php



?>

<?php include $this->getLayoutFile('block_top_messages'); ?>
<form class="form1" method="post" action="<?php echo $requestAction; ?>">

    <fieldset>
        <!-- <legend></legend> -->

        <div class="leftBlock">

            <div class="field">
                <label for="status"> 帳號啟用狀態 </label>
                <div class="show">
                    <select name="status">
                        <?php 
                            foreach( $user->getStatusList('status') as $name => $id ) {
                                if( $user->getStatus()==$id ) {
                                    $selected = ' selected="selected" ';
                                }
                                else {
                                    $selected = '';
                                }
                                echo "<option value='{$id}' {$selected}>". $user->trByName($name) ."</option>";
                            }

                        ?>
                    </select>
                </div>
                <div class="info"></div>
            </div>
            <div class="field">
                <label for="authType"> 認証身份 </label>
                <div class="show">
                    <select name="authType">
                        <?php
                            foreach( $user->getStatusList('authType') as $name => $id ) {
                                if( $user->getAuthType()==$id ) {
                                    $selected = ' selected="selected" ';
                                }
                                else {
                                    $selected = '';
                                }
                                echo "<option value='{$id}' {$selected} >". $user->trByName($name) ."</option>";
                            }
                        ?>
                    </select>
                </div>
            </div>
            <div class="field">
                <label for="email">Email</label>
                <div class="show">
                    <input type="text" name="email" value="<?php echo $user->getEmail(); ?>" size="30" />
                </div>
                <?php $errorField="email"; include $this->getLayoutFile('block_fields'); ?>
                <div class="info"></div>
            </div>

        </div>
        <div class="rightBlock">

            <div class="field">
                <label for="account"> 帳號 </label>
                <div class="show">
                    <input type="text" name="account" value="<?php echo $user->getAccount(); ?>" size="16" />
                </div>
                <?php $errorField="account"; include $this->getLayoutFile('block_fields'); ?>
            </div>
            <div class="field">
                <label for="account"> 密碼 </label>
                <div class="show">
                    <input type="password" name="password" value="" />
                </div>
                <?php $errorField="password"; include $this->getLayoutFile('block_fields'); ?>
            </div>
            <div class="field">
                <label for="account"> 密碼確認 </label>
                <div class="show">
                    <input type="password" name="password2" value="" />
                </div>
            </div>

        </div>
        <div class="submitBlock">

            <input class="submit" type="submit" value="新增" />

        </div>

    </fieldset>



</form>

